set nocompatible "enable vim (not vi) features

filetype plugin indent on "enable filetype detection and indentation
syntax enable "syntax highlighting without overriding color settings
set omnifunc=syntaxcomplete "syntax completion

set tabstop=8 "default; sets width of tab characters
set softtabstop=4 "number of spaces tab inserts when editing
set shiftwidth=4 "width for autoindent, and expandtab at beggining of line
set expandtab "insert spaces for tab
set smarttab "uses shiftwidth at line begin, tabstop/softtabstop elsewhere
set autoindent "uses indentation from last line on new line

set incsearch "highlights searches while typing
"set hlsearch "highlights all search matches
set showmatch "highlight matching brackets

set number "show line numbers
set ruler "show current position in file
set cul "highlight current line

set hidden "allows buffer switching with unsaved changes
set autoread "automatically updates file if it has been changed
set wrap "wraps long lines
"set list "shows newline and tab characters

set background=dark "use colors for dark background
colorscheme solarized "default colorscheme

if has('gui_running') "gvim options
    set guifont=Terminus\ 11 "gui font and size
    set guioptions-=T "remove toolbar
    set guioptions-=m "removes menu
    set guioptions-=r "remove right scrollbar
    set guioptions-=L "remove left scrollbar
endif
